<div id='login'  class="reg-login ">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableAjaxValidation'=>true,
	'clientOptions'=>array('validateOnSubmit'=>true, ),
	'focus'=>'input:text[value=""]:first',
	'htmlOptions'=>array('class'=>'reg-login')
)); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('class'=>'input')); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('class'=>'input')); ?>
	</div>

	<div class="row rememberMe">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?> 
		<?php 

		
		echo CHtml::link("忘记密码",array('/user/forgotpasswd'),array('class'=>'right'))?>
	</div>
		<?php echo CHtml::submitButton('登陆',array('class'=>'button')); ?>
		<?php echo CHtml::link(CHtml::image(Yii::app ()->request->baseUrl.'/images/sina_login_16.png'),array('/user/wblogin'));?>
		<span>还没有<b>名人吧</b>用户 --></span>
		<?php echo CHtml::link("注册",array('/user/register'))?>
 

<?php $this->endWidget(); ?>
</div><!-- form -->
